<include file="Public:header" />

<div class="main">
<div class="position"><p>您的当前位置：<a href="/">首页</a>  >  小区 </p></div>

<div class="search_criteria">
    <div class="search_criteria_top">
        <ul><li  class="ser_nav"><a href="{:U('Estate/index')}">小区找房</a></li>
            <li><a href="{:U('Used/index')}">二手房</a></li>
            <li><a href="{:U('Rental/index')}">出租房</a></li>
        </ul>
        <div class="search_gs ">
            <form method="get"  id="soForm">
                <input type="hidden" value="Home" name="m">
                <input type="hidden" value="Estate" name="c">
                <input type="hidden" value="index" name="a">
                <span class="search_gs_s1"><input name="key" type="text" class="sear_inp" id="houseKey" value="请输入您要搜索的关键字" /></span>
                <span class="search_gs_s1"><a href="javascript:;" id="so_but" class="but10">搜索</a></span>
            </form>
        </div>
    </div>
    <div class="ser_body">
        <div class="ser_body01 overflow_h"><span class="ser_body01_title">当前找房条件：</span>
            <ul>
                <volist name='s' id='vo'>
                    <li><a href="{$vo.url}"><span class="ser_ico"></span>{$vo.name}</a></li>
                </volist>
            </ul>
        </div>
        <div class="ser_body02 overflow_h">
            <span class="ser_b02_title">区域</span>
            <div class="ser_b02_n">
                <div class="ser_b02_n1 overflow_h">
                    <ul>
                        <li class="ser_col01"><a href="{:getUrl('Estate/index','alias',$url)}">不限</a></li>
                        <li><span class="ser_metro"><a href="{:getUrl('Estate/index','metro',$url)}">地铁房</a></span></li>
                        <volist name='area_cate' id='vo'>
                            <li <php>if($cate_pid_info['alias']==$vo['alias']){</php> class="b" <php>}</php>><a title="{$vo.name}" href="{:getUrl('Estate/index','alias',$url,$vo['alias'])}">{$vo.name}</a></li>
                        </volist>
                    </ul>
                </div>
                <php>if($houseArr['arr']['metro']){</php>
                <div class="ser_b02_n2 overflow_h">
                    <ul>
                        <volist name='cate_pid_list' id='vo'>
                            <li  <php>if($url['metro']==$vo['id']){</php> class="b" <php>}</php> ><a title="{$vo.name}" href="{:getUrl('Estate/index','metro',$url,$vo['id'])}">{$vo.name}</a></li>
                        </volist>
                    </ul>
                </div>
                <php>}else if($cate_pid_list){</php>
                <div class="ser_b02_n2 overflow_h">
                    <ul>
                        <volist name='cate_pid_list' id='vo'>
                            <li  <php>if($url['alias']==$vo['alias']){</php> class="b" <php>}</php> ><a title="{$vo.name}" href="{:getUrl('Estate/index','alias',$url,$vo['alias'])}">{$vo.name}</a></li>
                        </volist>
                    </ul>
                </div>
                <php>}</php>
            </div>
        </div>
        <div class="ser_body02 overflow_h">
            <span class="ser_b02_title">类型</span>
            <div class="ser_b02_n">
                <div class="ser_b02_n1 overflow_h">
                    <ul>
                        <li class="ser_col01"><a href="{:getUrl('Estate/index','houseType',$url)}">不限</a></li>
                        <volist name='menu[2]' id='vo'>
                            <li <php>if($url['houseType']==$vo['id']){</php> class="b" <php>}</php> ><a href="{:getUrl('Estate/index','houseType',$url,$vo['id'])}">{$vo.name}</a></li>
                        </volist>
                    </ul>
                </div>
            </div>
        </div>
        <div class="ser_body02 overflow_h">
            <span class="ser_b02_title">年代</span>
            <div class="ser_b02_n">
                <div class="ser_b02_n1 overflow_h">
                    <ul>
                        <li class="ser_col01"><a href="{:getUrl('Estate/index','years',$url)}">不限</a></li>
                        <volist name='menu[21]' id='vo'>
                            <li <php>if($url['years']==$vo['id']){</php> class="b" <php>}</php> ><a href="{:getUrl('Estate/index','years',$url,$vo['id'])}">{$vo.name}</a></li>
                        </volist>
                    </ul>
                </div>
            </div>
        </div>
    </div>
</div>

<div class="body_house overflow_h">
<div class="body_left">
    <div class="body_title">
        <ul>
            <li><a href="{:getUrl('Estate/index','sort',$url)}" <php>if(!$url['sort']){</php>class="selected"<php>}</php> >默认排序</a></li>
            <li><a href="{:getUrl('Estate/index','sort',$url,$houseArr['sort'][1])}" <php>if($url['sort'] && $url['sort']<=2){</php>class="selected"<php>}</php> >时间</a></li>
        </ul>
    </div>

    <div class="overflow_h">

        <volist name='list' id='vo'>
            <php>
                $img = json_decode($vo['file'],true);
            </php>
            <div class="body_div">
                <div class="overflow_h">
                    <div class="renting">
                        <span class="body_div01_img"><div class="buy_t2">{:count($img)}</div><div class="buy_t1"><h1><a target="_blank" href="{:U('Estate/detail',array('id'=>$vo['id']))}">{$vo.title}</a></h1></div><a target="_blank" href="{:U('Estate/detail',array('id'=>$vo['id']))}"><img alt="{$vo.title}" title="{$vo.title}" width="180" height="135" src="{$vo.img}"></a></span>
                        <h2><a target="_blank" href="{:U('Estate/detail',array('id'=>$vo['id']))}">{$vo.title}</a></h2>
                        <p>{:getHouseTypeStr($vo['house_type'],$estate_type)}　|　建筑年代：{$vo.years}</p>
                        <p><span class="body_span"><span class="text06">所在位置: </span>{$vo.address}</span><span class="body_span"><a class="body_span01" target="_blank" href="{:U('Map/index',array('hid'=>$vo['id'],'type'=>'estate'))}">地图</a></span></p>
                        <p class="est">出售<a title="{$vo.title}出售的二手房" href="{:U('Estate/used',array('id'=>$vo['id']))}" target="_blank">{$vo.sell_count}</a>套　|　出租<a title="{$vo.title}出租房"href="{:U('Estate/rental',array('id'=>$vo['id']))}" target="_blank">{$vo.lease_count}</a>套</p>
                    </div>
                </div>
            </div>
        </volist>

        <div class="plastic_bottom_pages">
            {$page}
        </div>

    </div>
</div>
<div class="body_right">
    <div class="second_hand_house_box">
        <h1 class="n_h_title"><span class="s_bg_line">推荐出租房</span><span class="more"><a href="{:U('Rental/index')}">更多</a></span></h1>
        <ul>
            <volist name='rec_rental' id='vo'>
                <li><span class="s_box01"><a title="{$vo.title}" href="{:U('Rental/detail',array('id'=>$vo['id']))}">{$vo.title}</a></span><span class="s_box02">{$vo.area}㎡</span><span class="s_box02 org">{$vo.price}元</span></li>
            </volist>
        </ul>
    </div>
    <div class="second_hand_house_box">
        <h1 class="n_h_title"><span class="s_bg_line">推荐二手房</span><span class="more"><a href="{:U('Used/index')}">更多</a></span></h1>
        <ul>
            <volist name='rec_used' id='vo'>
                <li><span class="s_box01"><a title="{$vo.title}" href="{:U('Used/detail',array('id'=>$vo['id']))}">{$vo.title}</a></span><span class="s_box02">{$vo.area}㎡</span><span class="s_box02 org">{$vo.total_price}万</span></li>
            </volist>
        </ul>
    </div>
    <div class="introduce_house06">
        <h1 class="n_h_title"><span class="s_bg_line">购房知识</span><span class="more"><a target="_blank" href="{:U('News/lists',array('alias'=>'goufangzhishi'))}">更多</a></span></h1>
        <ul>
            <volist name='news_list' id='vo'>
                <li><a  target="_blank" title="{$vo.title}" href="{:U('News/detail',array('id'=>$vo['id']))}">· {$vo.title}</a></li>
            </volist>
        </ul>
    </div>
</div>
</div>
</div>
<script type="text/javascript" src="__JS__/jquery.js"></script>
<script type="text/javascript" src="__JS__/layer/layer.js"></script>
<script type="text/javascript" src="__JS__/public.js"></script>
<script type="text/javascript">
    $("#houseKey").fangCmsText();
    $("#so_but").click(function(){
        var v = $("#houseKey").val();
        if(v=='' || v=='请输入您要搜索的关键字'){
            msg_show('请输入您要搜索的关键字',2);
            return false;
        }
        $("#soForm").submit();
    });
</script>
<include file="Public:footer" />